import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from "typeorm";

@Entity({ name: 'order_room' })
export class OrderRoomEntity extends BaseEntity {
    @PrimaryGeneratedColumn()
    id: number;

    @Column({
        type: 'int'
    })
    orderId: number;

    @Column({
        type: 'int'
    })
    roomTypeId: number;

    @Column({
        type: 'int',
        default: 0
    })
    roomId: number;

    @Column({
        type: 'int',

    })
    currentPrice: number;//当前房价

    @Column({
        type: 'tinyint',
        default: 1
    })
    status: 0 | 1;//0：禁用，1: 启用

}
